#pragma once

#include "Response.h"

#define MAXREQUEST 2048

enum RequestType {
    REQ_LOGIN,
    REQ_REGISTER,
    REQ_CHECK,
    REQ_UPLOAD,
    REQ_DOWNLOAD,
    // ...
};

// TLV协议：Tag Length value
typedef struct {
    int type;
    int length;     // value内容的长度
    char value[MAXREQUEST];
} Request;
